<script setup lang="ts">

import axios from 'axios'
import { onMounted } from 'vue'
import { reqLogin } from '@/api/user/user.js'
import SvgIcon from '@/components/Svg-icon/index.vue'

async function api() {
  const res = await axios({
    url: '/api/user/login',
    method: 'post',
    data: {
      username: 'admin',
      password: '111111',
    },
  })
  console.log(res)
}
onMounted(() => {
  reqLogin({ username: 'admin', password: '111111' })
})
</script>

<template>
<router-view></router-view>
</template>

<style scoped>

</style>
